package com.rd.student.ruanjian.class4.lichunquan.Text02;

public class Test02 {
    public static void main(String[] args) {
        for (int i = 1 , j = 6; i < 6; i++) {
            while(j>1){
                if(i>=j){
                    System.out.print(j);
                }else{
                    System.out.print(" ");
                }
                j--;
            }
            while(j<=5){
                if(i>=j){
                    System.out.print(j);
                }else{
                    System.out.print(" ");
                }
                j++;
            }
            System.out.println();
        }
    }
}
